package word413.chapter13;



public class Square extends GeometricObject{


    private double Sidelength;
    public Square(double sidelength) {
        Sidelength = sidelength;
    }

    public Square(String color, boolean filled, double sidelength) {
        super(color, filled);
        Sidelength = sidelength;
    }

    public double getSidelength() {
        return Sidelength;
    }

    public void setSidelength(double sidelength) {
        Sidelength = sidelength;
    }

    public double getArea(){ return Sidelength * Sidelength;}



    public double getPerimeter(){ return Sidelength * 4;}


}
